import Vue from 'vue'
import Router from 'vue-router'
import store from '@/store/index'
// import wechatAuth from '@/utils/wechatAuth'

Vue.use(Router)

const routes = [
  {
    path: '*',
    redirect: '/'
  },
  {
    path: '/',
    name: 'home',
    component: () => import(/* webpackChunkName: "Home" */ '@/views/Home/Home.vue'),
    meta: {
      title: '辉派美学研习社'
    }
  },

]

// add route path
// routes.forEach(route => {
//   route.path = route.path || '/' + (route.name || '')
// })

const router = new Router({
  routes
})



export default router
